import 'package:flutter_common_fragement/common/base/index.dart';
import 'package:flutter_common_fragement/common/config/request_config.dart';
import 'package:flutter_common_fragement/pages/root/model/missions_entity.dart';

class HallViewModel extends BaseListViewModel<MissionsEntity, MissionsList> {
  @override
  RequestConfig initRequestConfig() {
    return RequestConfig.fromGet('/job/worker/mission/getMissions');
  }

  @override
  List<MissionsList> formatResponseList(MissionsEntity model) {
    return model.list ?? [];
  }
}
